<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form method="post" id="form">
    名字：<input type="text" name="user"/><br/>
    密码：<input type="password" name="pwd"/><br/>
    确认密码：<input type="password" name="repwd"/><br/>
    手机号：<input type="text" name="phone"/><br/>
    邮箱：<input type="text" name="emily"/>
    <input type="button" class="sub" value="提交"/>
</form>
<!--<audio src="" id="id"></audio>-->
<!--<audio src="" controls="controls" id="id">-->
<!--</audio>-->
<a class="qq" href="javascript:;">点击</a>
</body>
<script type="text/javascript" src="__STATIC__/js/jquery.3.3.1.min.js"></script>
<script>


$(".sub").click(function(){
    $.post("{:url('/api/index/ziliao')}",{"id":13,"token":123},function(data){
        console.log(data);
        // if(data.time){
        //     setInterval(function zz(){
        //         $num = data.time--;
        //         console.log($num);
        //     },1000);
        //     $(".qq").click(function(){
        //         $.post("{:url('api/index/ifgetBank')}",{"id":16,"token":123,"right_key":2,"end_time":$num},function(aa){
        //             console.log(aa);
        //         });
        //     });
        // }else{
        //     $(".qq").click(function(){
        //         $.post("{:url('api/index/ifgetBank')}",{"id":16,"token":123,"right_key":2},function(aa){
        //             console.log(aa);
        //         });
        //     });
        // }



        // var $str = 'http://tsn.baidu.com/text2audio?lan=zh&ctp=1&cuid=abcdxxx&tok=24.77a23b05d83433abc0c273edd35b8153.2592000.1542450187.282335-14322477&tex='+data+'&vol=9&per=0&spd=5&pit=5&aue=3';
// $("#id").attr('src',$str);
        // console.log(parseInt(1760/60));
    });
});

</script>
</html>